package cn.edu.jxau.test;

import java.io.IOException;
import java.util.Arrays;

public class Main {

	public static void main(String[] args) throws IOException {
		
		Main m = new Main();
		System.out.println(m.reverseString("qweasdzxc"));
	}

	 public String reverseString(String iniString) {
		 
		 char[] arr = iniString.toCharArray();
		 int i = 0;
		 int j = arr.length-1;
		 while(i<j) {
			 char temp = arr[i];
			 arr[i] = arr[j];
			 arr[j] = temp;
			 i++;
			 j--;
		 }
		 return new String(arr);
	 }
}